import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SExploreShopItemInfo
    
    export  class SExploreShopItemInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SExploreShopItemInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            arg1.writeInt(this.itemCode);
            arg1.writeInt(this.itemNum);
            arg1.writeInt(this.oldPrice);
            arg1.writeInt(this.newPrice);
            arg1.writeInt(this.unit);
            arg1.writeBool(this.broadcast);
            arg1.writeBool(this.isWeapon);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.itemCode = arg1.readInt();
            this.itemNum = arg1.readInt();
            this.oldPrice = arg1.readInt();
            this.newPrice = arg1.readInt();
            this.unit = arg1.readInt();
            this.broadcast = arg1.readBool();
            this.isWeapon = arg1.readBool();
            return;
        }

        public /* const */_type: int=12480;

        public /* var */type: int;

        public /* var */itemCode: int;

        public /* var */itemNum: int;

        public /* var */oldPrice: int;

        public /* var */newPrice: int;

        public /* var */unit: int;

        public /* var */broadcast: Boolean;

        public /* var */isWeapon: Boolean;

        public static /* var */_regist: SExploreShopItemInfo;
    }

            SExploreShopItemInfo._regist = new SExploreShopItemInfo(true);
        